# If failed in sending an attachment that is smaller than 10 MB

The maximum size of an attachment file that the EmailSender ActiveX control can send is limited to 10 MB in an email. However, the default maximum size of the attachment file is limited to 300 KB. When you send an attachment that is smaller than 10 MB and it fails, follow the steps below:

1. Locate the AttachmentSize registry value:
   - On desktops, navigate to HKEY_CURRENT_USER\Software\Rockwell software\RSViewME\EmailSender\
   - On terminals, navigate to HKEY_LOCAL_MACHINE\Software\Rockwell Software\RSViewME\EmailSender\
2. Double click the AttachmentSize registry value, and in the Value data text box, enter the maximum size. The unit is bit. For example, if you select the Decimal option, you can enter 307200 (300 KB) through 10485760 (10 MB).

   Tip: | If the Value data is smaller than 300 KB or lager than 10 MB, the maximum size of the attachment file will be limited to 300 KB. If you did not send any email with an attachment, the AttachmentSize registry value does not exist. You can also create the registry value before you send the attachment.

## See also

EmailSender ActiveX control

Connections for the EmailSender ActiveX control

FailureCode connection values